package com.hn.gege.sys.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 权限资源表
 * </p>
 *
 * @author zxy
 * @since 2020-08-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_jurisdiction")
@ApiModel(value="Jurisdiction对象", description="权限资源表")
public class Jurisdiction implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "id")
    @TableField(fill = FieldFill.INSERT)
    private String id;

    @ApiModelProperty(value = "路径", required = true)
    @NotBlank
    private String url;

    @ApiModelProperty(value = "父id(一级权限为0)", required = true)
    @NotBlank
    private String parentId;

    @ApiModelProperty(value = "描述")
    private String describes;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;

    @ApiModelProperty(value = "最近修改时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date modifyDate;



}
